package com.pinyoumei.app.bean;

import java.math.BigDecimal;

/**
 * Created by Administrator on 2021-09-01.
 * --------- 日期 ------- 维护人 ------------ 变更内容 --------
 * 2021-09-01        Administrator             新增Person类
 * 2021-09-01        Administrator             增加sex属性
 */
public class OrderPayBean {


    /**
     * code : 1
     * errors : {}
     * msg : 加载成功
     * result : {"user_balance":100,"default_address":{"address_area":"湖南省长沙市雨花区德思勤城市广场","address_detail":"B5栋12楼","recieve_name":"胡三炮垃圾","user_id":"4c3dcd469f894c5689b1c96e74716cda","id":"1","is_default":1,"recieve_phone":"18286865258"},"goods_info":{"goods_name":"溪谷珍香米2.5kg","buy_num":1,"goods_price":99.98,"goods_img":"https://baiyiquan.oss-cn-shenzhen.aliyuncs.com/1630319945642.jpg"},"total_price":99.98,"coupon_desc":"暂无可用优惠券"}
     */

    private int code;
    private ErrorsBean errors;
    private String msg;
    private ResultBean result;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public ErrorsBean getErrors() {
        return errors;
    }

    public void setErrors(ErrorsBean errors) {
        this.errors = errors;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public ResultBean getResult() {
        return result;
    }

    public void setResult(ResultBean result) {
        this.result = result;
    }

    public static class ErrorsBean {
    }

    public static class ResultBean {
        /**
         * user_balance : 100
         * default_address : {"address_area":"湖南省长沙市雨花区德思勤城市广场","address_detail":"B5栋12楼","recieve_name":"胡三炮垃圾","user_id":"4c3dcd469f894c5689b1c96e74716cda","id":"1","is_default":1,"recieve_phone":"18286865258"}
         * goods_info : {"goods_name":"溪谷珍香米2.5kg","buy_num":1,"goods_price":99.98,"goods_img":"https://baiyiquan.oss-cn-shenzhen.aliyuncs.com/1630319945642.jpg"}
         * total_price : 99.98
         * coupon_desc : 暂无可用优惠券
         */

        private BigDecimal user_balance;
        private DefaultAddressBean default_address;
        private GoodsInfoBean goods_info;
        private BigDecimal total_price;
        private String red_package_amount;
        private String red_package_id;
        private String coupon_desc;

        public String getRed_package_amount() {
            return red_package_amount;
        }

        public void setRed_package_amount(String red_package_amount) {
            this.red_package_amount = red_package_amount;
        }

        public String getRed_package_id() {
            return red_package_id;
        }

        public void setRed_package_id(String red_package_id) {
            this.red_package_id = red_package_id;
        }

        public BigDecimal getUser_balance() {
            return user_balance;
        }

        public void setUser_balance(BigDecimal user_balance) {
            this.user_balance = user_balance;
        }

        public DefaultAddressBean getDefault_address() {
            return default_address;
        }

        public void setDefault_address(DefaultAddressBean default_address) {
            this.default_address = default_address;
        }

        public GoodsInfoBean getGoods_info() {
            return goods_info;
        }

        public void setGoods_info(GoodsInfoBean goods_info) {
            this.goods_info = goods_info;
        }

        public BigDecimal getTotal_price() {
            return total_price;
        }

        public void setTotal_price(BigDecimal total_price) {
            this.total_price = total_price;
        }

        public String getCoupon_desc() {
            return coupon_desc;
        }

        public void setCoupon_desc(String coupon_desc) {
            this.coupon_desc = coupon_desc;
        }

        public static class DefaultAddressBean {
            /**
             * address_area : 湖南省长沙市雨花区德思勤城市广场
             * address_detail : B5栋12楼
             * recieve_name : 胡三炮垃圾
             * user_id : 4c3dcd469f894c5689b1c96e74716cda
             * id : 1
             * is_default : 1
             * recieve_phone : 18286865258
             */

            private String address_area;
            private String address_detail;
            private String recieve_name;
            private String user_id;
            private String id;
            private int is_default;
            private String recieve_phone;

            public String getAddress_area() {
                return address_area;
            }

            public void setAddress_area(String address_area) {
                this.address_area = address_area;
            }

            public String getAddress_detail() {
                return address_detail;
            }

            public void setAddress_detail(String address_detail) {
                this.address_detail = address_detail;
            }

            public String getRecieve_name() {
                return recieve_name;
            }

            public void setRecieve_name(String recieve_name) {
                this.recieve_name = recieve_name;
            }

            public String getUser_id() {
                return user_id;
            }

            public void setUser_id(String user_id) {
                this.user_id = user_id;
            }

            public String getId() {
                return id;
            }

            public void setId(String id) {
                this.id = id;
            }

            public int getIs_default() {
                return is_default;
            }

            public void setIs_default(int is_default) {
                this.is_default = is_default;
            }

            public String getRecieve_phone() {
                return recieve_phone;
            }

            public void setRecieve_phone(String recieve_phone) {
                this.recieve_phone = recieve_phone;
            }
        }

        public static class GoodsInfoBean {
            /**
             * goods_name : 溪谷珍香米2.5kg
             * buy_num : 1
             * goods_price : 99.98
             * goods_img : https://baiyiquan.oss-cn-shenzhen.aliyuncs.com/1630319945642.jpg
             */

            private String goods_name;
            private int buy_num;
            private BigDecimal goods_price;
            private String goods_img;

            public String getGoods_name() {
                return goods_name;
            }

            public void setGoods_name(String goods_name) {
                this.goods_name = goods_name;
            }

            public int getBuy_num() {
                return buy_num;
            }

            public void setBuy_num(int buy_num) {
                this.buy_num = buy_num;
            }

            public BigDecimal getGoods_price() {
                return goods_price;
            }

            public void setGoods_price(BigDecimal goods_price) {
                this.goods_price = goods_price;
            }

            public String getGoods_img() {
                return goods_img;
            }

            public void setGoods_img(String goods_img) {
                this.goods_img = goods_img;
            }
        }
    }
}
